package ebcs.database.bean.sys;

import java.util.ArrayList;
import java.util.List;

public class PaAgencyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PaAgencyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAgenIdIsNull() {
            addCriterion("agen_id is null");
            return (Criteria) this;
        }

        public Criteria andAgenIdIsNotNull() {
            addCriterion("agen_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgenIdEqualTo(Integer value) {
            addCriterion("agen_id =", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdNotEqualTo(Integer value) {
            addCriterion("agen_id <>", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdGreaterThan(Integer value) {
            addCriterion("agen_id >", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agen_id >=", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdLessThan(Integer value) {
            addCriterion("agen_id <", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdLessThanOrEqualTo(Integer value) {
            addCriterion("agen_id <=", value, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdIn(List<Integer> values) {
            addCriterion("agen_id in", values, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdNotIn(List<Integer> values) {
            addCriterion("agen_id not in", values, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdBetween(Integer value1, Integer value2) {
            addCriterion("agen_id between", value1, value2, "agenId");
            return (Criteria) this;
        }

        public Criteria andAgenIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agen_id not between", value1, value2, "agenId");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIsNull() {
            addCriterion("displayOrder is null");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIsNotNull() {
            addCriterion("displayOrder is not null");
            return (Criteria) this;
        }

        public Criteria andDisplayorderEqualTo(String value) {
            addCriterion("displayOrder =", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotEqualTo(String value) {
            addCriterion("displayOrder <>", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderGreaterThan(String value) {
            addCriterion("displayOrder >", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderGreaterThanOrEqualTo(String value) {
            addCriterion("displayOrder >=", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderLessThan(String value) {
            addCriterion("displayOrder <", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderLessThanOrEqualTo(String value) {
            addCriterion("displayOrder <=", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderLike(String value) {
            addCriterion("displayOrder like", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotLike(String value) {
            addCriterion("displayOrder not like", value, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderIn(List<String> values) {
            addCriterion("displayOrder in", values, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotIn(List<String> values) {
            addCriterion("displayOrder not in", values, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderBetween(String value1, String value2) {
            addCriterion("displayOrder between", value1, value2, "displayorder");
            return (Criteria) this;
        }

        public Criteria andDisplayorderNotBetween(String value1, String value2) {
            addCriterion("displayOrder not between", value1, value2, "displayorder");
            return (Criteria) this;
        }

        public Criteria andFullidIsNull() {
            addCriterion("fullid is null");
            return (Criteria) this;
        }

        public Criteria andFullidIsNotNull() {
            addCriterion("fullid is not null");
            return (Criteria) this;
        }

        public Criteria andFullidEqualTo(String value) {
            addCriterion("fullid =", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidNotEqualTo(String value) {
            addCriterion("fullid <>", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidGreaterThan(String value) {
            addCriterion("fullid >", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidGreaterThanOrEqualTo(String value) {
            addCriterion("fullid >=", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidLessThan(String value) {
            addCriterion("fullid <", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidLessThanOrEqualTo(String value) {
            addCriterion("fullid <=", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidLike(String value) {
            addCriterion("fullid like", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidNotLike(String value) {
            addCriterion("fullid not like", value, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidIn(List<String> values) {
            addCriterion("fullid in", values, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidNotIn(List<String> values) {
            addCriterion("fullid not in", values, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidBetween(String value1, String value2) {
            addCriterion("fullid between", value1, value2, "fullid");
            return (Criteria) this;
        }

        public Criteria andFullidNotBetween(String value1, String value2) {
            addCriterion("fullid not between", value1, value2, "fullid");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(String value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(String value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(String value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(String value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(String value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(String value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLike(String value) {
            addCriterion("level like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotLike(String value) {
            addCriterion("level not like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<String> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<String> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(String value1, String value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(String value1, String value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("address is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("address is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("address =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("address <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("address >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("address >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("address <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("address <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("address like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("address not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("address in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("address not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("address between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("address not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andCancelstatusIsNull() {
            addCriterion("cancelstatus is null");
            return (Criteria) this;
        }

        public Criteria andCancelstatusIsNotNull() {
            addCriterion("cancelstatus is not null");
            return (Criteria) this;
        }

        public Criteria andCancelstatusEqualTo(String value) {
            addCriterion("cancelstatus =", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusNotEqualTo(String value) {
            addCriterion("cancelstatus <>", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusGreaterThan(String value) {
            addCriterion("cancelstatus >", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusGreaterThanOrEqualTo(String value) {
            addCriterion("cancelstatus >=", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusLessThan(String value) {
            addCriterion("cancelstatus <", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusLessThanOrEqualTo(String value) {
            addCriterion("cancelstatus <=", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusLike(String value) {
            addCriterion("cancelstatus like", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusNotLike(String value) {
            addCriterion("cancelstatus not like", value, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusIn(List<String> values) {
            addCriterion("cancelstatus in", values, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusNotIn(List<String> values) {
            addCriterion("cancelstatus not in", values, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusBetween(String value1, String value2) {
            addCriterion("cancelstatus between", value1, value2, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andCancelstatusNotBetween(String value1, String value2) {
            addCriterion("cancelstatus not between", value1, value2, "cancelstatus");
            return (Criteria) this;
        }

        public Criteria andContactPersonIsNull() {
            addCriterion("contact_person is null");
            return (Criteria) this;
        }

        public Criteria andContactPersonIsNotNull() {
            addCriterion("contact_person is not null");
            return (Criteria) this;
        }

        public Criteria andContactPersonEqualTo(String value) {
            addCriterion("contact_person =", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotEqualTo(String value) {
            addCriterion("contact_person <>", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonGreaterThan(String value) {
            addCriterion("contact_person >", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonGreaterThanOrEqualTo(String value) {
            addCriterion("contact_person >=", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLessThan(String value) {
            addCriterion("contact_person <", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLessThanOrEqualTo(String value) {
            addCriterion("contact_person <=", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonLike(String value) {
            addCriterion("contact_person like", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotLike(String value) {
            addCriterion("contact_person not like", value, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonIn(List<String> values) {
            addCriterion("contact_person in", values, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotIn(List<String> values) {
            addCriterion("contact_person not in", values, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonBetween(String value1, String value2) {
            addCriterion("contact_person between", value1, value2, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andContactPersonNotBetween(String value1, String value2) {
            addCriterion("contact_person not between", value1, value2, "contactPerson");
            return (Criteria) this;
        }

        public Criteria andTelephoneIsNull() {
            addCriterion("telephone is null");
            return (Criteria) this;
        }

        public Criteria andTelephoneIsNotNull() {
            addCriterion("telephone is not null");
            return (Criteria) this;
        }

        public Criteria andTelephoneEqualTo(String value) {
            addCriterion("telephone =", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotEqualTo(String value) {
            addCriterion("telephone <>", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneGreaterThan(String value) {
            addCriterion("telephone >", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneGreaterThanOrEqualTo(String value) {
            addCriterion("telephone >=", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLessThan(String value) {
            addCriterion("telephone <", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLessThanOrEqualTo(String value) {
            addCriterion("telephone <=", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLike(String value) {
            addCriterion("telephone like", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotLike(String value) {
            addCriterion("telephone not like", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneIn(List<String> values) {
            addCriterion("telephone in", values, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotIn(List<String> values) {
            addCriterion("telephone not in", values, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneBetween(String value1, String value2) {
            addCriterion("telephone between", value1, value2, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotBetween(String value1, String value2) {
            addCriterion("telephone not between", value1, value2, "telephone");
            return (Criteria) this;
        }

        public Criteria andParentidIsNull() {
            addCriterion("parentid is null");
            return (Criteria) this;
        }

        public Criteria andParentidIsNotNull() {
            addCriterion("parentid is not null");
            return (Criteria) this;
        }

        public Criteria andParentidEqualTo(String value) {
            addCriterion("parentid =", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotEqualTo(String value) {
            addCriterion("parentid <>", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThan(String value) {
            addCriterion("parentid >", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThanOrEqualTo(String value) {
            addCriterion("parentid >=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThan(String value) {
            addCriterion("parentid <", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThanOrEqualTo(String value) {
            addCriterion("parentid <=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLike(String value) {
            addCriterion("parentid like", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotLike(String value) {
            addCriterion("parentid not like", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidIn(List<String> values) {
            addCriterion("parentid in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotIn(List<String> values) {
            addCriterion("parentid not in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidBetween(String value1, String value2) {
            addCriterion("parentid between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotBetween(String value1, String value2) {
            addCriterion("parentid not between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andAgenTypeIsNull() {
            addCriterion("agen_type is null");
            return (Criteria) this;
        }

        public Criteria andAgenTypeIsNotNull() {
            addCriterion("agen_type is not null");
            return (Criteria) this;
        }

        public Criteria andAgenTypeEqualTo(String value) {
            addCriterion("agen_type =", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeNotEqualTo(String value) {
            addCriterion("agen_type <>", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeGreaterThan(String value) {
            addCriterion("agen_type >", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeGreaterThanOrEqualTo(String value) {
            addCriterion("agen_type >=", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeLessThan(String value) {
            addCriterion("agen_type <", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeLessThanOrEqualTo(String value) {
            addCriterion("agen_type <=", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeLike(String value) {
            addCriterion("agen_type like", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeNotLike(String value) {
            addCriterion("agen_type not like", value, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeIn(List<String> values) {
            addCriterion("agen_type in", values, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeNotIn(List<String> values) {
            addCriterion("agen_type not in", values, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeBetween(String value1, String value2) {
            addCriterion("agen_type between", value1, value2, "agenType");
            return (Criteria) this;
        }

        public Criteria andAgenTypeNotBetween(String value1, String value2) {
            addCriterion("agen_type not between", value1, value2, "agenType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}